package cn.hznc.controller.test.strategy;

import cn.hznc.constant.CommonConstant;
import cn.hznc.controller.task.InventoryTask;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author：Administrator
 * @Date：2024/2/22 17:12
 */
@Component
public class ZccSyncIcabinetRecordStrategy implements SyncIcabinetRecordStrategy{

    @Resource
    private InventoryTask inventoryTask;


    @Override
    public void syncIcabinetRecord(Integer type) {
        if(type == 0){
            inventoryTask.syncSmartICabinetData("1" , CommonConstant.SYNC_ENTRY_FEED_TIME);
        }else if(type == 1){
            inventoryTask.syncSmartICabinetData("2" , CommonConstant.SYNC_ENTRY_RECLAIMER_TIME);
        }
    }
}
